package com.itheima.ssm.dao;


import com.itheima.ssm.vo.Product;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Integer id);

    //int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    //=============================================================新增=========================

    public Product findById(int id);

    public List<Product> findAll();

    void save(Product product);

}